package myWS;

import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.xml.ws.Endpoint;

@WebService(
        name = "badpig",
        endpointInterface = "myWS.WSInterface",
        serviceName = "badpig"
)
public class HelloService implements WSInterface {
    public static void main(String[] args) {
        String address = "http://localhost:6666/badpig123";
        Endpoint.publish(address, new HelloService());
        System.out.println("Service is pubilsh at " + address);
    }

    @WebMethod(action = "https://meetingWebService.ws.ids.glaway.com/pushActionItems")
    @Override
    public String hello(String msg) {
        return "hello!" + msg;
    }
}
